﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using KPIS.GERP.GBMS.MODEL;

namespace KPIS.GERP.GBMS.DAL
{
    public interface IBgmKpiListDAL
    {
        string Insert(int intStatMapping, int intTargetSeq, int intKpiYear, int intCreatedBy
                      , string strKpiName, string strDes, string strKpiType, string strKpiUnit, int? intKpiWeight
                      , string strType); 

        void Update(string strKpiSeq, string strKpiName, string strDes, string strKpiUnit, string strKpiType,
                    string strKpiWeight, string created_by, string strType);

        DataTable Search(int? intStrategyMapSeq, int? intKpiYear, string strKpiName, string strKpiUnit,
                         string target_name, string record_status, string strType);

        void InsertTarget(string strBgmKpiSeq, string strStatMapping, Dictionary<int, double?> scores, string created_by);

        void Delete(string strKpiSeq, string created_by);

        DataTable SearchTarget(string strKpiSeq);

        void UpdateTarget(string strKpiDetSeq, double? dblKpiDetTarget, string created_by);

        void DeleteTarget(string strKpiSeq, string created_by);

        DataTable LoadKpiType();
        DataTable LoadKpiTarget();
        string CheckNameKpiTarget(int? intStrategyMapSeq, string strType);
        List<MODEL.BGMKPI> LoadGridKpiTarget(string target_seq);
        bool CheckValue(string strKpiSeq);

    }
}